﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="YhmOA._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">
        function aaa() {
            var str = "1,2";
            var str2 = "22";
            alert(str.indexOf(str2));
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table border="1" width="200">
            <tr>
                <td><asp:TextBox style="height:30px; line-height:30px;" Group="1,2" ISEmpty="true" ISEmptyAlt="不能为空" Expression="^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((\.[a-zA-Z0-9_-]{2,3}){1,2})$" ISErrorAlt="输入的格式有误" ID="TextBox1" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td id="txt"><asp:TextBox ID="TextBox2" Group="2" runat="server" ISEmpty="true" ISEmptyAlt="不能为空"></asp:TextBox></td>
            </tr>
            <tr>
                <td><asp:TextBox ID="TextBox3" TextMode="MultiLine" Height="40px" Width="500px" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td><asp:TextBox ID="TextBox4" runat="server"></asp:TextBox></td>
            </tr>
        </table>
        <asp:Button ID="Button1" runat="server" Group="1" Text="Button" 
            onclick="Button1_Click1" />
         <asp:Button ID="Button2" runat="server" Group="2" Text="Button" />
         <asp:Button ID="Button4" runat="server" Group="3" Text="Button" />
         <asp:Button ID="Button3" runat="server" Text="Button" />
        <a href="javascript:aaa();">aaaa</a>
    </div>
    </form>
</body>
</html>
